package com.tarena.charging.user.repository;

import com.tarena.charging.user.mapper.UserVehicleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserVehicleRepository {
    @Autowired
    private UserVehicleMapper userVehicleMapper;

    public Integer getCarIdByUserId(Integer userId) {
        //select id from charging_user_vehicle_bind where user_ID=#{userId}
        return userVehicleMapper.selectIdByUserId(userId);
    }
}
